<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@include file="/common/common.jspf" %>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/star/agent/edit.js"></script>

    <style type="text/css">
        .col-sm-3 {
            width: 15%;
            float: left;
        }

        .col-sm-9 {
            width: 85%;
            float: left;
        }
    </style>
</head>
<body>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post" action="${ctx}/star/agent/editEntity.shtml">
    <input type="hidden" class="form-control" value="${agent.id}" name="starAgentFormMap.id">
    <section class="panel panel-default">
        <div class="panel-body">
            <div class="form-group">
                <label class="col-sm-3 control-label">机构商名称</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入机构商名称" value="${agent.name}" name="starAgentFormMap.name">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">手机号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control checkacc" placeholder="请输入手机号" value="${agent.username}" name="starAgentFormMap.username" readonly="readonly">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">身份证号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入身份证号" value="${agent.id_card_no}" name="starAgentFormMap.id_card_no" readonly="readonly"
                           style="width: 60%;">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">银行卡号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入银行卡号" value="${agent.bank_card_no}" name="starAgentFormMap.bank_card_no" style="width: 60%;">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div data-toggle="distpicker">
                <label class="col-sm-3 control-label">所属省</label>
                <div class="form-group">
                    <label class="sr-only" for="province1">Province</label>
                    <select class="form-control" name="starAgentFormMap.province" id="province1" data-province="${agent.province}" style="width: 60%;">
                    </select>
                </div>
                <label class="col-sm-3 control-label">所属市</label>
                <div class="form-group">
                    <label class="sr-only" for="city1">City</label>
                    <select class="form-control" name="starAgentFormMap.city" id="city1" data-city="${agent.city}" style="width: 60%;">
                    </select>
                </div>
                <label class="col-sm-3 control-label">所属区</label>
                <div class="form-group">
                    <label class="sr-only" for="district1">District</label>
                    <select class="form-control" name="starAgentFormMap.county" id="district1" data-district="${agent.county}" style="width: 60%;">
                    </select>
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">详细地址</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入详细地址" name="starAgentFormMap.street" value="${agent.street}" style="width: 60%;">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">负责人</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入负责人" name="starAgentFormMap.supervisor" value="${agent.supervisor}" style="width: 60%;">
                </div>
            </div>
        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="submit" class="btn btn-success btn-s-xs">保存</button>
        </footer>
    </section>
</form>
</body>
</html>
